<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    // var a = 10；

    // bbbb;



    // 创建错误  抛出错误
    var err = new Error("This is a error");
    var err = new EvalError("This is a error");
    var err = new RangeError("This is a error");
    var err = new ReferenceError("a is not defined");
    var err = new TypeError("parameter 1 is array,but null give in");

    // throw err; 抛出错误 => 同作用域下 后续的代码不执行
    // console.log(err);
    // throw "1111";


    console.log("模拟后续执行的代码");


</script>

</html>